package main

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"message-center/pkg/gconfig"
	"message-center/router"
)

func main() {
	//init config
	gconfig.Init()

	// Create the Gin engine.
	endPoint := fmt.Sprintf(":%d", 9090)

	app := gin.New()

	app.Use(gin.Logger())
	app.Use(gin.Recovery())

	router.Route(app)

	app.Run(endPoint)
}
